<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
  <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
  <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="shortcut icon" href="./images/logo.ico" type="image/x-icon">
    <link rel="stylesheet" href="./css/login.css">
    <link rel="stylesheet" href="./css/all.css">
    <title>登录</title>
  </head>
  <body>
    <div class="container" style="margin-top: 5%;">
      <header>
        <!-- 顶部 -->
        <div class="row" id="nav">
          <div class="col-xs-12 col-sm-12 col-md-12" style="padding: 0;">

            <!-- logo -->
            <div class="col-xs-8 col-md-3" >
                <img src="./images/logo.jpg" style="height: 50px;width: 50px;float: left;">
                <h1>左唐文化</h1>
            </div>

            <!-- 页面标题 -->
            <div class="col-xs-4 col-md-2" style="padding: 0;">
              <h4>账号登录</h4>
            </div>

          </div>
      </div>
      </header>
      
      <!-- 表单 -->
      <section>
        <div class="row" id="login">
        <div class="col-xs-10 col-md-4 col-md-offset-6 col-xs-offset-1 text-center formbg">
          <form action="#">

            <!-- 用户名验证 -->
            <div style="margin-top: 20px;" class="text-center">
              手机号：<input type="text" placeholder="请输入已注册手机号" id="userName"/><br> 
              <div id="userNameId"></div>
            </div>

            <!-- 密码验证 -->
            <div style="margin-left: 20px;"> 
              密码：<input type="password" placeholder="请输入密码" id="password"/><br>
              <div id="pwdId"></div>
            </div>

            <!-- 提交 -->
            <input type="button" value="登录" class="submit" onclick="mHttp()"/><br>

            <div style="margin-top: 20px;">
                <!-- 注册 -->
                <a href="./register.html" class="register" style="margin-right: 20px;">注册</a>
                
                <!-- 找回密码 -->
                <a href="#"  data-toggle="modal" data-target="#myModal">密码找回</a>
            </div>
            
            
            
            </form>

            <!-- 找回密码模态框 -->
            <div class="modal fade" id="myModal">
              <div class="modal-dialog">
                <div class="modal-content">

                  <!-- 模态框顶部 -->
                  <div class="modal-header">

                    <!-- 关闭按钮 -->
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                      &times;
                    </button>

                    <!-- 标题 -->
                    <h4 class="modal-title" id="myModalLabel">
                      找回密码
                    </h4>
                  </div>

                  <!-- 模态框主要内容 -->
                  <div class="modal-body">

                    <!-- 手机号 -->
                    手机号：<input type="text" id="u_phone" ><br>
                    <div id="phoneId" style="margin-left:40%"></div>

                    <!-- 新密码 -->
                    新密码：<input type="password"  id="newpassword" >
                    <p style="font-size: 5px;margin: 5px;color: rgb(17, 117, 231);margin-left: 50px;">密码长度为6~16位,至少包含数字和字母</p>
                    <div id="newpwdId" style="margin: 0;margin-left: 40%;"></div>

                    <!-- 验证码 -->
                    <div style="margin-left: 5px;">验证码： <input type="text" id="sms_code" style="width: 130px;"> 
                    <input type="button" value="获取验证码" class="button" id="getcode" onclick="mHttp0()"><br></div>
                  </div>

                  <!-- 模态框底部按钮 -->
                  <div class="modal-footer">
                    
                  <!-- 提交 -->
                  <button type="button" class="btn btn-primary" onclick="mHttp1()" data-dismiss="modal">提交并修改密码</button>

                  </div>

                </div><!-- /.modal-content -->
              </div><!-- /.modal -->
            </div>
        </div>   


      </div>
      </section>

      
      <!-- 底部版权信息等 -->
      <footer>
        <div class="row" id="footer">
        </div>
      </footer>
    </div>
    </div>
  </body>
  <script src="./js/host.js"></script>
  <script src="./js/login.js"></script>
</html>
